package com.dave.admin.modular.boss.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.dave.admin.common.base.IdEntity;

/**
 * <p>
 * 角色权限表
 * </p>
 *
 * @author Dave
 * @since 2024-08-13
 */
@TableName("boss_role_permission")
public class RolePermission extends IdEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 角色 ID
     */
    private String roleId;

    /**
     * 权限 ID
     */
    private String permissionId;


    public RolePermission() {
    }

    public RolePermission(String roleId, String permissionId) {
        this.roleId = roleId;
        this.permissionId = permissionId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }

    public String getPermissionId() {
        return permissionId;
    }

    public void setPermissionId(String permissionId) {
        this.permissionId = permissionId;
    }

    public static final String ROLE_ID = "role_id";

    public static final String PERMISSION_ID = "permission_id";

    @Override
    public String toString() {
        return "RolePermission{" +
                "roleId=" + roleId +
                ", permissionId=" + permissionId +
                "}";
    }
}
